package com.arvin.pojo;




import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.Pattern;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
//lombok  在编译阶段,为实体类自动生成setter  getter toString
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @Pattern(regexp = "12[0-9]")
    private String studentId;//学号或管理员名
    private String password;//密码
    private  String confirmPassword; //确认密码
    private String newPassword; //新的密码
    private String code; //验证码
    private String email;//邮箱
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;//更新时间
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;//创建时间
}
